//
//  LLError.h
//  LLFoundation
//
//  Created by my_liu on 2016/11/14.
//  Copyright © 2016年 . All rights reserved.
//

#import <Foundation/Foundation.h>


/**
 *  数据持久化错误域
 */

extern NSString * const LLCacheErrorDomain;

/**
 *  数据持久化错误code
 */
enum
{
    LLCacheErrorPathIsNil      = 1001,
    LLCacheErrorPathNotExist   = 1002,
    LLCacheErrorPathIsExist    = 1003,
    LLCacheErrorParameterError = 1004,
    LLCacheErrorExpire         = 1005,
    LLCacheErrorWrongDiskCache = 1006,
    LLCacheErrorSaveFailed     = 1007,
    LLCacheErrorDeleteFailed   = 1008,
    LLCacheErrorTrimFailed   = 1009,
};

/**
 *  设备信息错误域
 */
extern NSString * const LLDeviceInfoErrorDomain;

/**
 *  设备信息错误code
 */
enum
{
    LLDeviceInfoErrorKeyChainUDIDAccessGroupIsNil = 1001,
    LLDeviceInfoErrorKeyChainItemNotFound         = 1002,
    LLDeviceInfoErrorKeyChainItemQueryError       = 1003,//在钥匙串中获取item失败
    LLDeviceInfoMacAddressErrorSysctlMgmtInfoBaseFailure = 1004,//获取mac地址，管理信息库信息获取失败
    LLDeviceInfoMacAddressErrorBufferAllocationFailure = 1005,//获取mac地址，buffer alloc失败
    LLDeviceInfoMacAddressErrorSysctlMsgBufferFailure = 1006,//获取mac地址，传入buffer，Sysctl方法失败
    LLDeviceInfoMacAddressErrorIf_nametoindexFailure = 1007,//获取mac地址，If_nametoindex失败
};

/**
 *  钥匙串错误域
 */
extern NSString * const LLKeychainErrorDomain;
